define(['durandal/system','durandal/app','jquery', 'knockout', './documentExamples'],function(system, app, $, ko, documentExamples) {
    var examples = ko.observableArray(documentExamples);

    var map = {
        'folder': 'glyphicon glyphicon-folder-open',
        'file': 'glyphicon glyphicon-file'
    };

    return {
        showCommend: function(item,event) {
            var self = $(event.target);
            self.find('.file-commend').show();
        },
        removeCommend: function(item,event) {
            var self = $(event.target);
            self.find('.file-commend').hide();
        },
        examples: examples
    }
});